/**
 * 
 */
package org.hotpotmaterial.codegenn2.dto;

import java.util.List;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author Wenxing
 *
 */
@Data
@EqualsAndHashCode(callSuper=true)
@NoArgsConstructor
public class ResultPageDTO<T> extends ResultBaseDTO {
	
	// 总条数
	private long total;
	// 当前页码
	private int pageNum;
	// 每页条数
	private int pageSize;
	// 数据
	private List<T> data;
	
	@Builder
	public ResultPageDTO(String code, String msg, long total, int pageNum, int pageSize, List<T> data) {
		super(code, msg);
		this.total = total;
		this.pageNum = pageNum;
		this.pageSize = pageSize;
		this.data = data;
	}

}
